# 法一：
# for i in range (1,10000):
#     if int((i+100)**0.5)==(i+100)**0.5 and int((i+100+168)**0.5)==(i+100+168)**0.5:
#         print(f"该数为：{i}")
#         break

# 法二：
# for i in range(1,10000):
#     if ((i+100)**0.5)%1==0 and ((i+100+168)**0.5)%1==0:
#         print(f"该数为：{i}")
#         break

# 法三：
import math

for i in range(1,10000):
    a=math.isqrt(i + 100)
    b=math.isqrt(i+100+168)
    if a*a==i+100 and b*b==i+100+168:
        print(f"该数为：{i}")
        break